package com.leyou.controller;

import com.leyou.service.UploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UploadController {
    @Autowired
    private UploadService uploadService;


    public ResponseEntity<Map<String,Object>> getAliSignature(){
        Map<String,Object> up = uploadService.getSignature();
        return ResponseEntity.ok(up);
    }

}
